package com.jdrx.ocp.beans.dto.cronTab;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * 创建任务信息DTO
 */
@ApiModel(value = "CreateCronTabDTO", description = "创建任务信息DTO")
public class CreateCronTabDTO {

    @NotBlank
    @Length(min = 1,max = 255)
    @ApiModelProperty(value = "任务名称", required = true)
    String taskName;

    @NotBlank
    @Length(min = 1,max = 255)
    @ApiModelProperty(value = "执行调用的地址", required = true)
    String url;

    @NotBlank
    @Length(min = 1,max = 100)
    @ApiModelProperty(value = "调度执行时间(简单时间或cron) ", required = true)
    String time;

//    @NotBlank
    @Length(min = 1,max = 255)
    @ApiModelProperty(value = "平台标识符", required = true)
    String prefix;

    @ApiModelProperty(value = "参数", required = true)
    String param;

    @ApiModelProperty(value = "任务描述", required = true)
    String remark;

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
